<?php

namespace App\Service\product;

use App\Models\product\ProductModel;
use lxs\config\BaseStatic;

class ProductElseService extends BaseStatic
{

    /**
     * 获取我的产品标题列表
     */
    public static function getProductTitleList(): array
    {
        $lists = ProductModel::select('product.id', 'product.product_title')
            ->get()->toArray();

        $data = [];
        foreach ($lists as $val) {
            $data[$val['product_title']] = $val;
        }
        return array_values($data);
    }


}
